package com.springcloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 顾志杰
 */
@SpringBootApplication
@EnableDiscoveryClient
@RestController
@Slf4j
public class SleuthTwoApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(SleuthTwoApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }


    @GetMapping(value = "traceB")
    public String traceB(){
        log.info("traceB");
        return "traceB";
    }


}
